package com.prince.web.service;

import com.prince.entity.RequestOrder;
import com.prince.enums.FundDirectionEnum;
import com.prince.model.Customer;
import com.prince.page.Page;

import java.math.BigDecimal;
import java.util.Map;

public interface UserOrderService {
    /**
     * 功能描述: 分页查询订单记录
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 15:25
     */
    Map<String, Object> findOrderByPage(Map<String, Object> params, Page page);
    /**
     * 功能描述: 添加订单
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 16:02
     */
    Map<String, Object> addOrder(RequestOrder params);
    /**
     * 功能描述: 部分退款
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/6 16:02
     */
    Map<String, Object> returnOrder(Integer id, String loginName);
    /**
     * 功能描述:  全部退款
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/4/16 11:00
     */
    Map<String, Object> returnAllOrder(Integer orderId, String loginName);
    /**
     * 功能描述: 账户变动
     * @Author: 王培喜 58528792@163.com
     * @Date: 2021/5/28 17:18
     */
   void customerAmountChange(Customer customer, Integer orderId, BigDecimal amount, String creater, FundDirectionEnum fundDirectionEnum) throws Exception;
}
